<?php

use think\facade\Route;

Route::get('activity/categories$', 'activity/Categories/index');
Route::get('activity/categories/:id$', 'activity/Categories/read');
Route::get('activity/subcategories/[:id]$', 'activity/Categories/subCategories');
Route::get('activity/tags/:id/items$', 'activity/Tags/items');
Route::get('activity/tags$', 'activity/Tags/index');
Route::get('activity/tags/hot$', 'activity/Tags/hotTags');
Route::get('activity/items$', 'activity/Items/index');
Route::get('activity/items/recommended$', 'activity/Lists/recommended');
Route::get('activity/items/my$', 'activity/UserItems/index');
Route::get('activity/items/:id$', 'activity/Items/read');
Route::get('activity/items/search/:keyword$', 'activity/Items/search');
Route::get('activity/items/category/:id$', 'activity/Lists/getCategoryPostLists');
Route::get('activity/items/:id/related$', 'activity/Items/relatedItems');
Route::get('activity/items/user/:id$', 'activity/Items/user');
Route::post('activity/items/like/do$', 'activity/Items/doLike');
Route::post('activity/items/like/cancel$', 'activity/Items/cancelLike');
Route::post('activity/items/favorite/do$', 'activity/Items/doFavorite');
Route::post('activity/items/favorite/cancel$', 'activity/Items/cancelFavorite');
Route::get('activity/pages$', 'activity/Pages/index');
Route::get('activity/pages/:id$', 'activity/Pages/read');
Route::get('activity/user/items$', 'activity/UserItems/index');
Route::get('activity/user/items/:id$', 'activity/UserItems/read');
Route::post('activity/user/items$', 'activity/UserItems/save');
Route::put('activity/user/items/deletes$', 'activity/UserItems/deletes');
Route::put('activity/user/items/:id$', 'activity/UserItems/update');
Route::delete('activity/user/items/:id$', 'activity/UserItems/delete');

Route::get('activity/search', 'activity/Items/search');
Route::get('activity/items/relatedItems', 'activity/Items/relatedItems');
Route::post('activity/items/doLike', 'activity/Items/doLike');
Route::post('activity/items/cancelLike', 'activity/Items/cancelLike');
Route::post('activity/items/doFavorite', 'activity/Items/doFavorite');
Route::post('activity/items/cancelFavorite', 'activity/Items/cancelFavorite');
Route::get('activity/tags/:id/items', 'activity/Tags/items');
Route::get('activity/tags', 'activity/Tags/index');
Route::get('activity/tags/hotTags', 'activity/Tags/hotTags');
